package com.sgj.mapper.mapstruct;

import com.sgj.common.enums.UserNameEnum;
import com.sgj.common.utils.BaseMapping;
import com.sgj.common.utils.EnumsTrans;
import com.sgj.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author 沈国纪
 * @date 2021/12/16 21:43
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserMapping /*extends BaseMapping<UserDto, User>, EnumsTrans<UserNameEnum> */{
    UserMapping INSTANCE = Mappers.getMapper(UserMapping.class);
}